import utils from "../utils/utils";
import request from '../utils/request';

// 获取所有项目
export function getProjectInfo(data) {
    return request({
        url: '/configuration_system/v1_0_0/project/getProjectInfo',
        method: 'post',
        data 
    })
}

// 带权限的所有项目
export function getUserProjectInfo(data) {
    return request({
        url: '/configuration_system/v1_0_0/project/getUserProjectInfo',
        method: 'post',
        data 
    })
}

// 通过项目ID拿去项目详情
export function getProjectInfoByProjectId(data) {
    return request({
        url: '/configuration_system/v1_0_0/project/getProjectInfoByProjectId',
        method: 'post',
        data 
    })
}
// 获取项目状态页信息
export function getProjectStateInfoByProjectId(data) {
    return request({
        url: '/configuration_system/v1_0_0/project/getProjectStateInfoByProjectId',
        method: 'post',
        data 
    })
}
// 项目设备配备
export function getProjectEquipmentInfoById(data) {
    return request({
        url: '/configuration_system/v1_0_0/project/getProjectEquipmentInfoById',
        method: 'post',
        data 
    })
}
// // 获取SAAS信息
// export function getSaasInfo(data) {
//     return request({
//         url: '/configuration_system/v1_0_0/project/getSaasInfo',
//         method: 'post',
//         data 
//     })
// }
// 获取项目日志
export function getProjectLog(data) {
    return request({
        url: '/configuration_system/v1_0_0/project/getProjectLog',
        method: 'post',
        data 
    })
}
// 新建项目-1
export function addProjectFirstStep(data) {
    return request({
        url: '/configuration_system/v1_0_0/project/addProjectFirstStep',
        method: 'post',
        data 
    })
}
// 新建项目-2
export function addProjectSecondStep(data) {
    return request({
        url: '/configuration_system/v1_0_0/project/addProjectSecondStep',
        method: 'post',
        data 
    })
}
// 新建项目-3
export function addProjectThreeStep(data) {
    return request({
        url: '/configuration_system/v1_0_0/project/addProjectThreeStep',
        method: 'post',
        data 
    })
}
// 新建项目
export function addProject(data) {
    return request({
        url: '/configuration_system/v1_0_0/project/addProject',
        method: 'post',
        data 
    })
}


export function updProject(data) {
    return request({
        url: '/configuration_system/v1_0_0/project/updProject',
        method: 'post',
        data 
    })
}


//硬件配置 - 获取
export function getEquipmentList(data) {
    return request({
        url: '/configuration_system/v1_0_0/project_eq_detail/getEquipmentList',
        method: 'post',
        data
    })
}
//硬件配置 - 删除
export function delEquipment(data) {
    return request({
        url: '/configuration_system/v1_0_0/project_eq_detail/delEquipment',
        method: 'post',
        data
    })
}
//硬件配置 - 修改
export function updEquipment(data) {
    return request({
        url: '/configuration_system/v1_0_0/project_eq_detail/updEquipment',
        method: 'post',
        data
    })
}
//硬件配置 - 新增
export function addEquipment(data) {
    return request({
        url: '/configuration_system/v1_0_0/project_eq_detail/addEquipment',
        method: 'post',
        data
    })
}
//硬件配置-获取机房设备
export function getProjectEquipment(data) {
    return request({
        url: '/configuration_system/v1_0_0/project_eq_detail/getProjectEquipment',
        method: 'post',
        data
    })
}
//硬件配置-获取日志
export function getProjectEqDetailLog(data) {
    return request({
        url: '/configuration_system/v1_0_0/project_eq_detail_log/getProjectEqDetailLog',
        method: 'post',
        data
    })
}
// 获取saas信息
export function getSaasInfo(data) {
    return request({
        url: '/configuration_system/v1_0_0/project/getSaasInfo'
        ,
        method: 'post',
        data
    })
}

// 硬件配置-SAAS基础菜单
export function getCustomerMenu(data) {
    return request({
        url: '/configuration_system/v1_0_0/menu/getCustomerMenu',
        method: 'post',
        data
    })
}

// 
export function saveCustomerMenu(data) {
    return request({
        url: '/configuration_system/v1_0_0/menu/saveCustomerMenu',
        method: 'post',
        data
    })
}

export function saveCustomerOptionMenu(data) {
    return request({
        url: '/configuration_system/v1_0_0/menu/saveCustomerOptionMenu',
        method: 'post',
        data
    })
}

// 获取下载清单

export function exportEquipmentInfo(data) {
    return request({
        url: '/configuration_system/v1_0_0/project/exportEquipmentInfo',
        method: 'post',
        data
    })
}

// 下载

export function fileDownload(data) {
    return request({
        url: '/internal_public/attach/fileDownload',
        method: 'post',
        data,
       
    })
}
